<template>
	<view style="text-align: center;background-color: aqua;padding: 40rpx;margin: 40rpx 0;">
		<!-- 在分包中的子组件 -->
		<view v-for="(item,index) in userItem" :key="index">
			<view @click="hello(item,index)">你好 {{ item }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			userItem: {
				type: Array
			}
		},
		data() {
			return {}
		},
		methods: {
			hello(user, index) {
				this.$emit('hello', user, index)
			}
		}
	}
</script>

<style>
</style>